package com.frejoys.common.dto.common.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

@Data
public class AuthRuleAddDto {

    // @NotBlank(message = "{600}")
    @Schema(type = "String", name = "icon", description = "icon图标名称", required = true, defaultValue = "agperture")
    private String icon;

    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "route", description = "路由", required = true, defaultValue = "/menu/farm")
    private String route;

    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "name", description = "路由名称", required = true, defaultValue = "/menu/farm")
    private String name;

    @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "pid", description = "父id", required = true, defaultValue = "0")
    private Integer pid;

    // // @NotBlank(message = "{600}")
    // @Schema(type = "String", name = "path", description = "层级关系,英文逗号拼接", required = false, defaultValue = "")
    // private String path;

    // @NotNull(message = "{600}")
    @Schema(type = "Integer", name = "sort", description = "排序", required = false, defaultValue = "0")
    private Integer sort;

    // @NotNull(message = "{600}")
    // @Schema(type = "Integer", name = "type", description = "类型：1平台，2商家，3代理", required = true, defaultValue = "1")
    // private Integer type;


}
